<template>
  <div class="demo">
    <div class="demo-title">大小</div>
    <div class="demo-content">
      <Radio.Group v-model:value="size" style="margin-bottom: 16px">
        <Radio.Button value="small">Small</Radio.Button>
        <Radio.Button value="default">Default</Radio.Button>
        <Radio.Button value="large">Large</Radio.Button>
      </Radio.Group>
      <Tabs v-model:activeKey="activeKey" :size="size">
        <Tabs.TabPane key="1" tab="Tab 1">Content of Tab Pane 1</Tabs.TabPane>
        <Tabs.TabPane key="2" tab="Tab 2">Content of Tab Pane 2</Tabs.TabPane>
        <Tabs.TabPane key="3" tab="Tab 3">Content of Tab Pane 3</Tabs.TabPane>
      </Tabs>
    </div>
  </div>
</template>

<script lang="ts" setup>
  import { ref } from 'vue';
  import Radio from '@sscd/radio';
  import Tabs from '@sscd/tabs';
  import type { TabsProps } from '@sscd/tabs';
  const size = ref<TabsProps['size']>('small');
  const activeKey = ref('1');
</script>
